<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="storageMaterialDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='storageMaterialDetail.heading'/>"/>
    <meta name="menu" content="RoleMaterial"/>
</head>

<s:form id="storageMaterialForm" action="saveStorageMaterial" method="post" validate="true">
    <s:hidden name="storageMaterial.id" value="%{storageMaterial.id}"/>
    <s:label key="storageMaterial.material.name" cssClass="text medium"/>
    <s:textfield readonly="true" key="limit" cssClass="readonly" maxLength="20"/>
    <s:textfield key="stock" required="true" cssClass="text medium" maxLength="20"/>
    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>

</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("storageMaterialForm"));
</script>